home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #2
/
Amiga Plus CD - 2004 - No. 02.iso
/
AmigaPlus
/
Tools
/
Development
/
AmigaTalk
/
prelude
/
Integer.p
< prev
next >
Wrap
Text File
|
2004-01-31
|
7KB
|
206 lines
pTempVar <- <primitive 110 44 >
<primitive 112 pTempVar 1 " timesRepeat: " \
#( #[ 16r50 16r72 16r22 16r20 16rC7 16rF7 16r0B 16r21 16rA5 16rF2 16r22 \
16r51 16rC0 16rF1 16r72 16rF2 16rF9 16r10 16rF2 16rF5] \
#( )) >
<primitive 112 pTempVar 2 " intNegRem: " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r12 16r20 16r20 16r50 16rC7 \
16rF7 16r03 16r5A 16rF8 16r02 16rF2 16r51 16rC2 16r72 16r22 \
16r21 16rCD 16rF8 16r04 16rF2 16r20 16r0A 16r23 16rF3] \
#( )) >
<primitive 112 pTempVar 3 " rem: " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r1D 16rF8 16r04 16rF2 16r20 16r0A 16r23 16rF3] \
#( )) >
<primitive 112 pTempVar 4 " asBareSignedOctal " \
#( #[ 16r20 16r58 16r5B 16r5C 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 5 " asBareSignedBinary " \
#( #[ 16r20 16r52 16r5B 16r5C 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 6 " asBareSignedHex " \
#( #[ 16r20 16r05 16r10 16r5B 16r5C 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 7 " asBareOctal " \
#( #[ 16r20 16r58 16r5C 16r5C 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 8 " asBareBinary " \
#( #[ 16r20 16r52 16r5C 16r5C 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 9 " asBareHex " \
#( #[ 16r20 16r05 16r10 16r5C 16r5C 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 10 " asSignedOctal " \
#( #[ 16r20 16r58 16r5B 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 11 " asSignedBinary " \
#( #[ 16r20 16r52 16r5B 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 12 " asSignedHex " \
#( #[ 16r20 16r05 16r10 16r5B 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 13 " asOctal " \
#( #[ 16r20 16r58 16r5C 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 14 " asBinary " \
#( #[ 16r20 16r52 16r5C 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 15 " asHex " \
#( #[ 16r20 16r05 16r10 16r5C 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 16 " print " \
#( #[ 16r20 16r05 16rFF 16rCC 16rF7 16r08 16r20 16r80 16r00 16rFA 16r01 \
16r79 16rF8 16r06 16rF2 16r20 16rA9 16rFA 16r01 16r79 16rF2 \
16rF5] \
#( #asHex )) >
<primitive 112 pTempVar 17 " radix: " \
#( #[ 16r20 16r21 16r5B 16r5B 16rFA 16r04 16r1A 16rF3] \
#( )) >
<primitive 112 pTempVar 18 " // " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r13 16rF8 16r04 16rF2 16r20 16r0A 16r23 16rF3] \
#( )) >
<primitive 112 pTempVar 19 " quo: " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r1C 16rF8 16r04 16rF2 16r20 16r0A 16r23 16rF3] \
#( )) >
<primitive 112 pTempVar 20 " odd " \
#( #[ 16r20 16r52 16rCD 16r50 16rCA 16rF3] \
#( )) >
<primitive 112 pTempVar 21 " noMask: " \
#( #[ 16r50 16r20 16r21 16rC5 16rC9 16rF3] \
#( )) >
<primitive 112 pTempVar 22 " lcm: " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r0A 16r20 16r21 16rC2 16r20 \
16r21 16r0B 16r1C 16rCE 16rF8 16r04 16rF2 16r20 16r0A 16r23 \
16rF3] \
#( )) >
<primitive 112 pTempVar 23 " highBit " \
#( #[ 16r20 16rFA 16r01 16r22 16rF3] \
#( )) >
<primitive 112 pTempVar 24 " gcd: " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r14 16rF8 16r04 16rF2 16r20 16r0A 16r23 16rF3] \
#( )) >
<primitive 112 pTempVar 25 " factorial " \
#( #[ 16r20 16rFA 16r01 16r26 16rF3] \
#( )) >
<primitive 112 pTempVar 26 " even " \
#( #[ 16r20 16r52 16rCD 16r50 16rC9 16rF3] \
#( )) >
<primitive 112 pTempVar 27 " bitXor: " \
#( #[ 16r20 16r21 16rFA 16r02 16r18 16rF3] \
#( )) >
<primitive 112 pTempVar 28 " bitShift: " \
#( #[ 16r20 16r21 16rFA 16r02 16r19 16rF3] \
#( )) >
<primitive 112 pTempVar 29 " bitOr: " \
#( #[ 16r20 16r21 16rFA 16r02 16r16 16rF3] \
#( )) >
<primitive 112 pTempVar 30 " bitInvert " \
#( #[ 16r20 16rFA 16r01 16r21 16rF3] \
#( )) >
<primitive 112 pTempVar 31 " bitAt: " \
#( #[ 16r20 16r21 16rFA 16r02 16r15 16rF3] \
#( )) >
<primitive 112 pTempVar 32 " bitAnd: " \
#( #[ 16r20 16r21 16rFA 16r02 16r17 16rF3] \
#( )) >
<primitive 112 pTempVar 33 " asString " \
#( #[ 16r20 16rFA 16r01 16r25 16rF3] \
#( )) >
<primitive 112 pTempVar 34 " asFloat " \
#( #[ 16r20 16rFA 16r01 16r27 16rF3] \
#( )) >
<primitive 112 pTempVar 35 " asCharacter " \
#( #[ 16r20 16rFA 16r01 16r24 16rF3] \
#( )) >
<primitive 112 pTempVar 36 " anyMask: " \
#( #[ 16r50 16r20 16r21 16rFA 16r02 16r17 16rCA 16rF3] \
#( )) >
<primitive 112 pTempVar 37 " allMask: " \
#( #[ 16r21 16r20 16r21 16rFA 16r02 16r17 16rC9 16rF3] \
#( )) >
<primitive 112 pTempVar 38 " / " \
#( #[ 16r20 16r0A 16r10 16r21 16rBF 16rF3] \
#( )) >
<primitive 112 pTempVar 39 " * " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r12 16rF8 16r05 16rF2 16r20 16r21 16r91 16r00 16rF3] \
#( #* )) >
<primitive 112 pTempVar 40 " - " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r0B 16rF8 16r05 16rF2 16r20 16r21 16r91 16r00 16rF3] \
#( #- )) >
<primitive 112 pTempVar 41 " + " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r0A 16rF8 16r05 16rF2 16r20 16r21 16r91 16r00 16rF3] \
#( #+ )) >
<primitive 112 pTempVar 42 " < " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r0C 16rF8 16r05 16rF2 16r20 16r21 16r91 16r00 16rF3] \
#( #< )) >
<primitive 112 pTempVar 43 " > " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r0D 16rF8 16r05 16rF2 16r20 16r21 16r91 16r00 16rF3] \
#( #> )) >
<primitive 112 pTempVar 44 " = " \
#( #[ 16r20 16r21 16rFA 16r02 16r06 16rF7 16r07 16r20 16r21 16rFA 16r02 \
16r10 16rF8 16r05 16rF2 16r20 16r21 16r91 16r00 16rF3] \
#( #= )) >
<primitive 98 #Integer \
<primitive 97 #Integer #Number #AmigaTalk:General/Integer.st \
#( ) \
#( #timesRepeat: #intNegRem: #rem: #asBareSignedOctal #asBareSignedBinary \
#asBareSignedHex #asBareOctal #asBareBinary #asBareHex #asSignedOctal #asSignedBinary \
#asSignedHex #asOctal #asBinary #asHex #print #radix: #// #quo: #odd #noMask: #lcm: \
#highBit #gcd: #factorial #even #bitXor: #bitShift: #bitOr: #bitInvert #bitAt: \
#bitAnd: #asString #asFloat #asCharacter #anyMask: #allMask: #/ #* #- #+ #< #> \
#= ) \
pTempVar 3 5 > #ordinary >